package xdu.lz.netty.b_io.decorator;

/**
 * 装饰者 角色
 * 1：要实现抽象构建角色： Component
 * 2：要持有一个抽象构建角色的引用：private Component component
 */
public class Decorator implements Component {

    private Component component;

    public Decorator(Component component) {
        this.component = component;
    }

    public void doSomething() {
        component.doSomething();
    }

}
